package com.party.core.service.gift;

import com.party.common.paging.Page;
import com.party.core.model.gift.GiftTarget;
import com.party.core.model.gift.GiftTargetListOutput;
import com.party.core.service.IBaseService;

import java.util.List;
import java.util.Map;

/**
 * @Author: Administrator.
 * @Description: 礼包和目标关系
 * @Date:Created in 2017/11/15 0015 上午 10:35.
 */
public interface IGiftTargetService extends IBaseService<GiftTarget> {
    List<GiftTarget> findByGiftId(String giftId);

    List<GiftTarget> findByTargetId(String targetId);

    GiftTarget getUnique(GiftTarget giftTarget);

    void deleteByGiftId(String giftId);

    List<GiftTargetListOutput> webListPage(GiftTargetListOutput giftTarget, Map<String, Object> params, Page page);

    Integer getCountByGiftId(String giftId);

    void deleteByUnique(GiftTarget giftTarget);

    void deleteByTargetId(String targetId);
}
